package com.molichuxing.services.infrastructure.service;

import java.util.List;
import java.util.Map;

import com.molichuxing.services.infrastructure.dto.request.create.InsuranceCommercialCreateDto;
import com.molichuxing.services.infrastructure.dto.request.modify.InsuranceCommercialModifyDto;
import com.molichuxing.services.infrastructure.dto.response.InsuranceCommercialDto;

/**
 * <p>
 * 商业险详细表 服务类
 * </p>
 *
 * @author xuelin yi
 * @since 2019-08-20
 */
public interface InsuranceCommercialService {

    /**
     * 根据商业险id获取总的保险保费信息
     * @param insuranceIds
     * @return
     */
    Map<Integer, InsuranceCommercialDto> getInsuranceCommercialAmount(List<Integer> insuranceIds);

    /**
     * 根据商业险id获取保险保费信息
     * @param insuranceId
     * @return
     */
    List<InsuranceCommercialDto> getInsuranceCommercialList(Integer insuranceId);

    /**
     * 修改商业险的保费信息
     * @param insuranceId
     * @param modifyDto
     * @return
     */
    Boolean modifyCommercial(int insuranceId, List<InsuranceCommercialModifyDto> modifyDto);

    /**
     * 新增商业险的保费信息
     * @param insuranceId
     * @param createDto
     * @return
     */
    Boolean createCommercial(int insuranceId, List<InsuranceCommercialCreateDto> createDto);


    /**
     * 批量添加
     * @param dataList
     * @return
     */
    int createBatchCommercial(List<InsuranceCommercialCreateDto> dataList);

	/**
	 * 根据商业险id获取保险保费信息
	 * 
	 * @param insuranceIds
	 * @return
	 */
	public Map<Integer, List<InsuranceCommercialDto>> getInsuranceCommercialList(List<Integer> insuranceIds);

}
